package cn.liip.demo.UserService;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import cn.liip.demo.domain.User;
import cn.liip.demo.mapper.UserMapper;

@Service("userService")
public class UserService {
    @Resource
    private UserMapper userMapper;

    public List<User> findByUsername(String userName){
        return  userMapper.findByUsername(userName);
    }

    
    public User findById(Integer id) {
    	return  userMapper.findById(id);
    }
   
}